<?php

defined('SYSPATH') or die('No direct access allowed.');

if (!Route::cache()) {
    Route::set('uploadpays', 'uploadpays(/<action>)(/<id>)(/<token>)'
            )
            ->defaults(array(
                'controller' => 'uploadpays',
                'action' => 'index',
    ));

    Route::set('finance', 'finance(/<action>)(/<id>)(/<token>)'
            )
            ->defaults(array(
                'controller' => 'finance',
                'action' => 'index',
    ));
    Route::set('uploadpay', 'uploadpay(/<action>)(/<id>)(/<token>)'
            )
            ->defaults(array(
                'controller' => 'uploadpay',
                'action' => 'payshow',
    ));
}


//权限设置
ACL::set('money', array(
    'uploadpay' => array(
        'title' => __('单条采购付款单录入'),
        'restrict access' => true,
        'description' => '',
    ),
    'uploadpays' => array(
        'title' => __('采购付款单上传'),
        'restrict access' => true,
        'description' => '',
    ),
    'finance form' => array(
        'title' => __('采购付款单报表'),
        'restrict access' => true,
        'description' => '',
    ),
));